
<template>
  <div class="container">
    <!-- {{ this.info.userFace }} -->
    <!-- 返回按钮 -->
    <div class="rebtn">
      <el-button
        type="primary"
        icon="el-icon-arrow-left"
        @click="ddd"
      >上一页</el-button>
    </div>
    <div class="up">
      <!-- 图片渲染 -->
      <div class="block">
        <span class="title" />
        <el-avatar
          shape="square"
          :size="100"
          fit="fill"
          :src="this.info.userFace"
          style="height: 100px; border-radius: 50%"
        />
      </div>
      <el-divider><i class="el-icon-star-off" /></el-divider>
      <!-- 会员信息详情 -->
      <div class="down">
        <el-card class="box-card" shadow="hover">
          <div class="word1">
            <h4 class="word2">
              会员名 :
              {{ this.info.username }}
            </h4>
          </div>
          <div class="word2">
            <h4>会员姓名 ： {{ this.info.realname }}</h4>
          </div>
          <div class="word2">
            <h4>性别 ：{{ this.info.gender }}</h4>
          </div>
          <div class="word2">
            <h4>手机号码 ： {{ this.info.telephone }}</h4>
          </div>
        </el-card>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      info: {}
    }
  },

  created() {
    // console.log(this.$route.query);
    this.info = this.$route.query
  },
  // 组件方法
  methods: {
    ddd() {
      this.$router.go(-1)
    }
  }
}
</script>
<style scoped>
.rebtn {
  position: absolute;
  left: 20px;
  top: 20px;
}
/* .head {
  height: 10ex;
} */
.container {
  min-height: calc(100vh - 100px);
  /* background-color: #ffd8d9; */
}
.up {
  width: 100px;
  height: 100px;
  position: absolute;
  left: 50%;
  top: 25%;
  margin: -50px 0 0 -50px;
}
.box-card {
  position: absolute;
  /* position: relative; */
  /* top: 10px; */
  top: -10px;
  width: 250px;
  height: 250px;
  border: 0ch;
  right: -170px;
  /* left: 10%; */
}
.down {
  position: absolute;
  left: 30%;
}
.word2 {
  text-align: left;
}
</style>
